package cn.com.qingz.modules.user.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.github.miemiedev.mybatis.paginator.domain.PageList;

import cn.com.qingz.modules.user.model.Brand;
import cn.com.qingz.modules.user.vo.BrandSearchCondition;
import tk.mybatis.mapper.common.Mapper;

public interface BrandMapper extends Mapper<Brand> {

    public PageList<Brand> queryForPage(BrandSearchCondition condtion, PageBounds pageBounds);

    @Select("select * from brand where title= #{title} limit 0,1")
    public Brand findByName(@Param("title") String title);
}
